# -*- coding: utf-8 -*-

"""
1.学生类定义及输出学生个人信息方法
"""
class Student:
	"""id: 学号
	   name: 姓名
	   age: 年龄
	   major: 专业"""
	id = ''
	name = ''
	age = 0
	major = ''

	def __init__(self, id, name, age, major):
		self.id = id
		self.name = name
		self.age = age
		self.major = major
	def print(self):
		print("学号: {0}, 姓名: {1}, 年龄: {2}, 专业: {3}".format(self.id, self.name, self.age, self.major))
